let currentOption = [
  {
    name: '卫健委-bug',
    href: `http://zentao.dipstandard.cn/zentao/bug-browse-3-all-unclosed-0-assignedTo_asc-44-2000-1.html`,
  },
  {
    name: '院端3.0',
    href: `http://zentao.dipstandard.cn/zentao/bug-browse-2-all-unresolved-0--59-2000-1.html`,
  },
  {
    name: '新院端-bug',
    href: `http://zentao.dipstandard.cn/zentao/bug-browse-1-all-unresolved-0--26-2000-1.html?tid=20spr5mw`,
  },
  {
    name: '新医保-bug',
    href: `http://zentao.dipstandard.cn/zentao/project-bug-7-4-0-status,id_desc-0-unresolved-0.html`,
  },
  {
    name: '新医保-需求',
    href: `http://zentao.dipstandard.cn/zentao/projectstory-story-7.html`,
  },
  {
    name: '广州三期-bug',
    href: `http://zentao.dipstandard.cn/zentao/project-bug-11-8-0-status,id_desc-0-unresolved-0.html`,
  },
  {
    name: '局端-bug',
    href: `http://zentao.dipstandard.cn/zentao/project-bug-13-5-0-status,id_desc-0-unresolved-0.html`,
  },
  {
    name: '监督所',
    href: `http://zentao.dipstandard.cn/zentao/project-bug-10-6-0-status,id_desc-0-unresolved-0.html`,
  },
];

export function FenzhiChandaoCallBack() {
  setTimeout(() => {
    currentOption.forEach((item) => {
      var currentEl = document.createElement('li');
      currentEl.innerHTML = `<a class="show-in-app" href="javascript:void(0);"><span class="text">${item.name}</span></a>`;
      currentEl.onclick = () => (window.location.href = item.href);
      document.getElementById('menuMainNav')?.appendChild(currentEl);
    });
  }, 300);
}

export function FenzhiCLoginCallBack() {
  setTimeout(() => {
    document.getElementById('account').value = 'guokun';
    document.getElementsByName('password')[0].value = 'Boxue123..';
    document.getElementById('submit').click();
  }, 300);
}
